import { defineStore } from "pinia"

export const UseLocationaside = defineStore({
    id: 'Locationaside',
    state: () => ({
        locationArr: [
            { code: 'LOCATION_01', name: '01区', status: false },
            { code: 'LOCATION_02', name: '02区', status: false },
            // { code: 'LOCATION_03', name: '03区', status: false },
            // { code: 'LOCATION_04', name: '04区', status: false },
            // { code: 'LOCATION_01', name: '01区', status: false },
            // { code: 'LOCATION_02', name: '02区', status: false },
            // { code: 'LOCATION_03', name: '03区', status: false },
        ],

    }),
    actions: {
        async SetlocationArr(locationArr: any) {
            this.$patch({
                locationArr: locationArr,
            });
        },
    },
})